| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python315/Lib/asyncio/__pycache__/ |
Upload File : |
R
>lqjT0 c �P � Qs ]QHGs ]QHGs ]QHGs ]QHGs Q Q 2 sP! )� TaskGroup)�events)�
exceptions)�futures)�tasksc �n ` � \ sQ s]
s n QsQ sQ sQ sQ sQ s Q s
U 1Q kQ ksQ
sQ s
Q sQ
sU sP! )r a Asynchronous context manager for managing groups of tasks.
Example use:
async with asyncio.TaskGroup() as group:
task1 = group.create_task(some_coroutine(...))
task2 = group.create_task(other_coroutine(...))
print("Both tasks have completed now.")
All tasks are awaited when the context manager exits.
Any exceptions other than `asyncio.CancelledError` raised within
a task will cancel all remaining tasks and wait for them to exit.
The exceptions are then combined and raised as an `ExceptionGroup`.
c � � P
U m P
U m P
U m PU m PU m P
U m [
2 U m , U m PU m PU m
P
U m P! )F)�_entered�_exiting� _aborting�_loop�_parent_task�_parent_cancel_requested�set�_tasks�_errors�_base_error�_on_completed_fut�_cancel_on_enter��selfs &�'C:\Python315\\Lib\asyncio\taskgroups.py�__init__�TaskGroup.__init__ sV � ���
���
������
� ���(-��%��e���������!%��� %��� c � � P,oU O % c( UO Q[ U O 2 02 U O % c( UO Q[ U O 2 02 U O % c UO Q2 L#U O
% c UO Q2 QO
U2 oQU Q0! )� ztasks=zerrors=�
cancelling�entered� z
<TaskGroup�>)r �append�lenr r
r �join)r �info�info_strs & r �__repr__�TaskGroup.__repr__* s� � ��t���;�;�;��K�K�&��T�[�[�!1� 2�3�4��<�<�<��K�K�'�#�d�l�l�"3�!4�5�6��>�>�>��K�K��%�
�]�]�]��K�K� �"��8�8�D�>���H�:�Q�'�'r c � �| � U O % c [ Q U 8 Q02 gU O e [ O 2 U m [
O U O 2 U m U O e [ Q U 8 Q02 gP U m U O % c U O 2 U ! 3h)�
TaskGroup z has already been enteredz! cannot determine the parent task)
r �RuntimeErrorr r �get_running_loopr �current_taskr r �cancelr s &r �
__aenter__�TaskGroup.__aenter__8 s� � � ��=�=�=���T�H�$=�>�@�
@��:�:���0�0�2�D�J�!�.�.�t�z�z�:������$���T�H�$E�F�H�
H���
�� � � ��K�K�M���s �B<�B<�AB<�(B<�*B<c � � � Po U O V2 E Pi w� K
PU m PU m PU m Po! K PS m PS m PS m Poh 9 h3h�N)�_aexitr r r )r �et�exc�tbs &&&&r � __aexit__�TaskGroup.__aexit__H sc � � �
��
����R�-�-�-� !%�D���D�L�#�D���C� .�� !%�D���D�L�#�D���C�s% �A�; �9�; �A�; �A�Ac � � � P U m Ud, U O U2 % c U O e V m Ud$ [ U[ O
2 % c SoLPoUd# U O % f U O 2 U O % cN U O e U O O 2 U m U O E Pi w� K
PU m J_ U O % c P gU O d U O gU O % c"